@extends('home.m.m2.public.public')

@section('content')
    <div class="sidebar">
        <div class="sb_nav">
            <h3 class='title'>
                <p class="moresidebar">更多分类</p>
                产品展示
            </h3>
        </div>
        <div class="sb_box">
            <div class="active ajaxlist" id="productlist">
                <ul class="poroduct_list_2">
                    @if(!empty($infos))
                        @foreach($infos as $value)
                            <li>
                                <a href="{{ route('info',['product',$value['id']]) }}">
                                    <dl class="ind">
                                        <dt><img src="{{ $value['image'] }}" alt="{{ $value['name'] }}"
                                                 title="{{ $value['name'] }}"/></dt>
                                        <dd>
                                            <h4>{{ $value['name'] }}</h4>
                                            <p class="desc" title="{{ $value['name'] }}">
                                                {{ subtext($value['simpledescribe'],15) }}
                                            </p>
                                        </dd>
                                        <dt class="more"></dt>
                                    </dl>
                                </a>
                            </li>
                        @endforeach
                    @else
                        <div class="noinfo">暂无资料!</div>
                    @endif
                </ul>
                <div class="pagelist">
                    {{ $infos->links() }}
                </div>
            </div>
        </div>
        <div class="clear"></div>
    </div>
    <div class="sidebar_jsbox none"></div>
    <div id="sidebar" class="none" data-csnow="3" data-class3="0">
        <h3 class="title">产品展示</h3>
        <div id="wrapper_sidebar">
            <div id="scroller_sidebar">
                @foreach($sorts['product'] as $value)
                    <dl class="list-none navnow">
                        <dt id='part2_7'>
                            <a href='{{ route('sort',['product',$value['id']]) }}' title='{$vo.name}' class="zm">
                                <span>{{ $value['name'] }}</span>
                            </a>
                        </dt>
                    </dl>
                @endforeach
            </div>
        </div>
    </div>
@endsection